{include file="header.html"}
{if $user_type == 1}
<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>

<div class="title tc ml-30 mr-10">
	<h2>客户走访</h2>
</div>
<div class="content px-20">
<p class="tc mt-30"><span id="btn_reg_1" class="btn w-150" style="display:inline-block"> 售前走访信息录入 </span></p>
<p class="tc mt-60"><span id="btn_reg_2" class="btn w-150" style="display:inline-block"> 售后走访信息录入  </span></p>



    <p class="tc mt-60"><span id="btn_reg_3" class="btn w-150" style="display:inline-block"> 业务员走访信息查询  </span></p>
    <p class="tc mt-60"><span id="btn_reg_4" class="btn w-150" style="display:inline-block"> 业务员走访信息录入  </span></p>

    <script type="text/javascript">
$(function(){
	$("#btn_reg_1").click(function(){
		window.location.href = '/index.php?act=interview&st=pre_sales';
	});
	$("#btn_reg_2").click(function(){
		window.location.href = '/index.php?act=interview&st=aftermarket';
	});
    $("#btn_reg_3").click(function(){
        window.location.href = '/index.php?act=interview&st=visitSearch';
    });
    $("#btn_reg_4").click(function(){
        window.location.href = '/index.php?act=interview&st=visitEntry';
    });
/*
    wx.config({
        debug: false,
        appId: '{$config.appId}',
        timestamp:'{$config.timestamp}',
        nonceStr: '{$config.nonceStr}',
        signature:'{$config.signature}',
        jsApiList: ['checkJsApi',
            'onMenuShareTimeline',
            'onMenuShareAppMessage',
            'onMenuShareQQ',
            'onMenuShareWeibo',
            'hideMenuItems',
            'showMenuItems',
            'hideAllNonBaseMenuItem',
            'showAllNonBaseMenuItem',
            'translateVoice',
            'startRecord',
            'stopRecord',
            'onRecordEnd',
            'playVoice',
            'pauseVoice',
            'stopVoice',
            'uploadVoice',
            'downloadVoice',
            'chooseImage',
            'previewImage',
            'uploadImage',
            'downloadImage',
            'getNetworkType',
            'openLocation',
            'getLocation',
            'hideOptionMenu',
            'showOptionMenu',
            'closeWindow',
            'scanQRCode',
            'chooseWXPay',
            'openProductSpecificView',
            'addCard',
            'chooseCard',
            'openCard']
    });*/

    /*
    wx.ready(function () {
        // 在这里调用 API
        wx.getLocation({
            success: function (res) {
                alert(JSON.stringify(res));
            }
        });
        wx.openLocation({
            latitude: 31.233390,
            longitude: 121.520810,
            name: '招商银行商务楼',
            address: '上海市浦东新区崂山路316号',
            scale: 17,
            infoUrl: 'http://weixin.qq.com'
        });
    });*/
});
</script>
</div>
{else}
<script type="text/javascript">
alert('您好！此服务仅供日钢业务员使用，请先注册成为内部用户！');
document.location.href = '/index.php?act=register';
</script>
{/if}
{include file="footer.html"}